package com.chuangshi.core.vote.player.controller.admin.request;

import com.chuangshi.core.kit.Request;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Digits;
import javax.validation.constraints.NotNull;

/**
 * 人员信息管理端V1新增接收参数
 *
 * @author ggliming
 * @date 2019-02-21
 */
@ApiModel(description = "人员信息管理端V1列表接收参数")
public class PlayerAdminV1SaveRequest extends Request {

    @ApiModelProperty(value = "头像编号", required = true, position = 10)
    @Length(max = 32, message = "头像编号长度超出限制")
    private String playerImageId;

    @ApiModelProperty(value = "头像", required = true, position = 20)
    @NotNull(message = "头像不能为空")
    @Length(max = 300, message = "头像长度超出限制")
    private String playerImagePath;

    @ApiModelProperty(value = "岗位编号", required = true, position = 30)
    @NotNull(message = "岗位编号不能为空")
    @Length(max = 32, message = "岗位编号长度超出限制")
    private String positionId;

    @ApiModelProperty(value = "岗位名称", required = true, position = 40)
    @NotNull(message = "岗位名称不能为空")
    @Length(max = 100, message = "岗位名称长度超出限制")
    private String positionName;

    @ApiModelProperty(value = "序号", required = true, position = 50)
    @NotNull(message = "序号不能为空")
    @Digits(integer = 11, fraction = 0, message = "序号长度超出限制")
    private Integer playerNum;

    @ApiModelProperty(value = "姓名", required = true, position = 60)
    @Length(max = 100, message = "姓名长度超出限制")
    private String playerName;

    @ApiModelProperty(value = "小区", required = true, position = 70)
    @NotNull(message = "小区不能为空")
    @Length(max = 200, message = "小区长度超出限制")
    private String playerAddress;

    @ApiModelProperty(value = "经销商", required = true, position = 80)
    @NotNull(message = "经销商不能为空")
    @Length(max = 200, message = "经销商长度超出限制")
    private String playerAgency;

    @ApiModelProperty(value = "投票数", required = true, position = 90)
    @Digits(integer = 11, fraction = 0, message = "投票数长度超出限制")
    private Integer playerVoteNum;

    public String getPlayerImageId() {
        return playerImageId;
    }

    public void setPlayerImageId(String playerImageId) {
        this.playerImageId = playerImageId;
    }

    public String getPlayerImagePath() {
        return playerImagePath;
    }

    public void setPlayerImagePath(String playerImagePath) {
        this.playerImagePath = playerImagePath;
    }

    public String getPositionId() {
        return positionId;
    }

    public void setPositionId(String positionId) {
        this.positionId = positionId;
    }

    public String getPositionName() {
        return positionName;
    }

    public void setPositionName(String positionName) {
        this.positionName = positionName;
    }

    public Integer getPlayerNum() {
        return playerNum;
    }

    public void setPlayerNum(Integer playerNum) {
        this.playerNum = playerNum;
    }

    public String getPlayerName() {
        return playerName;
    }

    public void setPlayerName(String playerName) {
        this.playerName = playerName;
    }

    public String getPlayerAddress() {
        return playerAddress;
    }

    public void setPlayerAddress(String playerAddress) {
        this.playerAddress = playerAddress;
    }

    public String getPlayerAgency() {
        return playerAgency;
    }

    public void setPlayerAgency(String playerAgency) {
        this.playerAgency = playerAgency;
    }

    public Integer getPlayerVoteNum() {
        return playerVoteNum;
    }

    public void setPlayerVoteNum(Integer playerVoteNum) {
        this.playerVoteNum = playerVoteNum;
    }

}